package com.lh.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * User实体类
 *
 * @Author LuoHang
 * @Date 2022-05-08 19:53
 **/
@ApiModel(value = "User",description = "User实体类对象")
public class User implements Serializable {
    private static final long serialVersionUID = -3130412848532261406L;
    @ApiModelProperty(value = "用户ID",name = "id",dataType = "Integer")
    private Integer id;
    @ApiModelProperty(value = "用户名",name = "username",dataType = "String")
    private String username;
    @ApiModelProperty(value = "用户登录密码",name = "password",dataType = "String")
    private String password;

    public User() {
    }

    public User(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
